<!--
@license
Copyright 2019 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<div class="container">
  <div class="title">Debugger V2 is inactive because no data is available.</div>

  <div>To use the debugger,</div>
  <div>
    <ol>
      <li>
        Add the following line to the beginning of your program:
        <div class="code">
          <span>tf.debugging.experimental.enable_dump_debug_info(</span>
          <span class="arg">logdir</span>,
          <span class="arg">tensor_debug_mode="FULL_HEALTH"</span>,
          <span class="arg">circular_buffer_size=-1</span>
          <span>)</span>
        </div>
      </li>
      <li>Re-run the program.</li>
    </ol>
  </div>

  <div class="exhibits-container">
    <div class="exhibit">
      <div class="screenshot">
        <img src="%cutout-1-alerts.png%" />
      </div>
      <div class="description">Auto-alerts for problems found</div>
    </div>

    <div class="exhibit">
      <div class="screenshot">
        <img src="%cutout-2-tracing.png%" />
      </div>
      <div class="description">
        Integrated debugging to trace problems to their causes
      </div>
    </div>

    <div class="exhibit">
      <div class="screenshot">
        <img src="%cutout-3-code.png%" />
      </div>
      <div class="description">Link log to code</div>
    </div>
  </div>

  <div class="details-container">
    <div class="details">
      The log directory must contain TensorFlow Debugger (V2) data.
      tf.debugging.experimental.enable_dump_debug_info() will collect tensor
      data, graph structures, the associated stack traces, and source code to
      the specificed directory logdir as the instrumented TensorFlow program
      executes.
    </div>

    <div class="details">
      <div>
        See
        <a
          href="https://www.tensorflow.org/api_docs/python/tf/debugging/experimental/enable_dump_debug_info"
          target="blank"
          rel="noreferrer noopener"
        >
          documentation
        </a>
        of the Python API of Debugger V2.
      </div>
      <div>
        See
        <a
          href="https://www.tensorflow.org/api_docs/python/tf/debugging"
          target="blank"
          rel="noreferrer noopener"
        >
          here
        </a>
        for other TensorFlow debugging APIs.
      </div>
    </div>
  </div>
</div>
